<template>
  <ElFormItem prop="dictType" label="选项字典">
    <ApiSelect
      v-model="elProps.dictType"
      :request-api="dictTypeApi.listAll"
      label-name="dictName"
      value-name="dictType"
    ></ApiSelect>
  </ElFormItem>
</template>
<script setup lang="ts" name="DictTypeEditor">
import { ElFormItem } from "element-plus";
import { ApiSelect } from "@/components/Form";
import dictTypeApi from "@/views/system/dict-type/api";
defineProps({
  elProps: {
    type: Object
  }
});
</script>
